home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / zoo tutorial / module 9- full screen mode / source / zoo9.java < prev    next >
Encoding:
Java Source  |  2000-06-23  |  3.4 KB  |  80 lines

  1. import java.awt.Color;
  2. import java.awt.GridBagLayout;
  3. import java.awt.GridBagConstraints;
  4.  
  5. import quicktime.QTSession;
  6. import quicktime.QTException;
  7.  
  8. import com.apple.mrj.MRJApplicationUtils;
  9. import com.apple.mrj.MRJQuitHandler;
  10.  
  11. import quicktime.app.display.FullScreenWindow;
  12. import quicktime.std.movies.FullScreen;
  13.  
  14. /**
  15.  * QTZoo Module 9 - Using Full Screen Mode
  16.  * This application requires QuickTime for Java
  17.  *
  18.  * @author Levi Brown
  19.  * @author Michael Hopkins
  20.  * @author Apple Computer, Inc.
  21.  * @version 9.0 4/10/2000
  22.  * Copyright:     © Copyright 1999 Apple Computer, Inc. All rights reserved.
  23.  *    
  24.  * Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  25.  *                ("Apple") in consideration of your agreement to the following terms, and your
  26.  *                use, installation, modification or redistribution of this Apple software
  27.  *                constitutes acceptance of these terms.  If you do not agree with these terms,
  28.  *                please do not use, install, modify or redistribute this Apple software.
  29.  *
  30.  *                In consideration of your agreement to abide by the following terms, and subject
  31.  *                to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  32.  *                copyrights in this original Apple software (the "Apple Software"), to use,
  33.  *                reproduce, modify and redistribute the Apple Software, with or without
  34.  *                modifications, in source and/or binary forms; provided that if you redistribute
  35.  *                the Apple Software in its entirety and without modifications, you must retain
  36.  *                this notice and the following text and disclaimers in all such redistributions of
  37.  *                the Apple Software.  Neither the name, trademarks, service marks or logos of
  38.  *                Apple Computer, Inc. may be used to endorse or promote products derived from the
  39.  *                Apple Software without specific prior written permission from Apple.  Except as
  40.  *                expressly stated in this notice, no other rights or licenses, express or implied,
  41.  *                are granted by Apple herein, including but not limited to any patent rights that
  42.  *                may be infringed by your derivative works or by other works in which the Apple
  43.  *                Software may be incorporated.
  44.  *
  45.  *                The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  46.  *                WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  47.  *                WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  48.  *                PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  49.  *                COMBINATION WITH YOUR PRODUCTS.
  50.  *
  51.  *                IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  52.  *                CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  53.  *                GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  54.  *                ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  55.  *                OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  56.  *                (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  57.  *                ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  58.  * 
  59.  * 
  60.  */
  61.  
  62. public class Zoo9 implements MRJQuitHandler
  63. {
  64.     static public void main(String[] args) 
  65.     {
  66.         try
  67.         {
  68.             QTSession.open();            // Initialize QuickTime 
  69.             new Zoo9();     
  70.         }
  71.         catch (Exception e) 
  72.         {
  73.             e.printStackTrace();
  74.             QTSession.close();            // Shut down QuickTime and dispose of native context
  75.         }
  76.     }
  77.     
  78.     protected MainFrame mainFrame;
  79. }
  80.